/**
 * 支付页面
 */

let p = new Vue({
    el: '#pay',
    data: {
        user:JSON.parse(sessionStorage.getItem("user")),
        order:{}
    },
    created() {

        let formData={
            orderId:localStorage.getItem("orderId")
        }
        $.get('http://localhost:8080/cinema/api/SelectOrderByIdServlet.do', formData, function (dto) {
            p.order=dto.value;
           
        }, "json");
    },
    methods: {
        close:function(){
            $(".hide-prompt").hide();
            window.location.replace("home_filmInfo.html");
        },
        conpay:function(){
            localStorage.setItem("orderId",this.order.orderId);
            localStorage.setItem("price",this.order.price);

            location.href='home_cashier.html';
        }
    
    }
});